

import {
  _div,
  _btn,
  _append
} from '../ui/index.js'

let hi = _div("hi webpack", {
  class: 'red'
})
let btn = _btn("say hi", {
  class: 'red'
}, {
  click: () => {
    _append(hi, "!")
  }
})

let app = document.getElementById("app")
_append(app,[hi,btn])